﻿using System.Collections.Generic;
using GroupMessageModel = WeiXinPF.Model.weixin.groupMessage.wx_groupMessage;

namespace WeiXinPF.BLL.weixin.groupMessage
{
    public class wx_groupMessage
    {
        private readonly DAL.weixin.groupMessage.wx_groupMessage dal = new DAL.weixin.groupMessage.wx_groupMessage();

        public GroupMessageModel Add(GroupMessageModel model)
        {
            return dal.Add(model);
        }

        public GroupMessageModel Update(GroupMessageModel model)
        {
            return dal.Update(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }

        public GroupMessageModel Get(int id)
        {
            return dal.Get(id);
        }

        public List<GroupMessageModel> GetList(int wid, int pageSize, int pageIndex, string title, out int total)
        {
            return dal.GetList(wid, pageSize, pageIndex, title, out total);
        }
    }
}